<template>
    <view class="Contain"> <!-- Contain Start -->

        <block v-if="isByOrder===true">
            <!-- 待付款提示 -->
            <!-- payStatus、mailStatus -->
            <!--
            payStatus: 1: 未支付 2: 已支付  3: 已退款
            mailStatus: 1: 未发货 2: 已发货 3: 确认收货 4：退货中  5：已退货
            -->
            <view class="OrderState" v-if="payStatus>0">
                <u-row gutter="16">
                    <u-col span="3" text-align="center">
                        <view class="oa">
                            <image :src="orderStateIamge"></image>
                        </view>
                    </u-col>
                    <u-col span="6" text-align="left">
                        <view class="ob">{{ orderText }}</view>
                        <view class="ob2">{{ orderDesc }}</view>
                    </u-col>
                    <u-col span="3" text-align="center">
                        <view class="oc" v-if="payStatus===1" @click="GenerateOrder">去支付</view>
                        <!-- 还未有订单物流查询接口 -->
                        <!-- <view class="oc" v-if="mailStatus===2" @click="GoPage">查物流</view> -->
                        <view class="oc" v-if="mailStatus===2" @click="fuzhiExpress">{{ expressName }}</view>
                    </u-col>
                </u-row>
                <u-gap height="20" bg-color="#F7F9FD" margin-top="0" margin-bottom="20"></u-gap>
            </view> <!-- OrderState End -->
        </block>


        <!-- 运输完成 -->
        <!-- payStatus、mailStatus -->
        <!--
        payStatus: 1: 未支付 2: 已支付  3: 已退款
        mailStatus: 1: 未发货 2: 已发货 3: 确认收货 4：退货中  5：已退货
        -->
        <view class="address" v-if="payStatus===2 && mailStatus===3">
            <view class="name">
                <u-row gutter="16">
                    <u-col span="1" text-align="center">
                        <view class="na" style="top:-40rpx">
                            <image src="https://aigxyy.oss-cn-shenzhen.aliyuncs.com/images/shopimg/llcar.png" style="width:30rpx; height:30rpx;"></image>
                        </view>
                    </u-col>
                    <u-col span="11" text-align="left">
                        <view class="nb">运输完成</view>
                        <view class="nb2">您的订单已签收，感谢您对广医大健康的支持，想健康就来大健康平台！</view>
                    </u-col>
                </u-row>
            </view> <!-- name End -->
        </view> <!-- address End -->


        <!-- 间隔槽 -->
        <u-gap height="20" bg-color="#F7F9FD" margin-top="0" margin-bottom="20"></u-gap>


        <!-- 收货地址 -->
        <view class="address">
            <view class="name">
                <u-row gutter="16">
                    <u-col span="1" text-align="center">
                        <view class="na" :style="isInputAddress===true?'top:0rpx;':''"
                              @click="GoUrl('../shop_addAddress/shop_addAddress')">
                            <u-icon name="map" color="#999" size="33"></u-icon>
                        </view>
                    </u-col>
					<!-- {{isInputAddress}} -->
                    <u-col span="9" text-align="left">
                        <view class="nb" v-if="isInputAddress===false"
                              @click="GoUrl('../shop_selectedAddress_new/shop_selectedAddress_new')" style="margin-left:20rpx;">新建收货地址
                        </view>
						<view v-if="isInputAddress===true" style="margin-left:20rpx;">
							<view class="nb" 
								  @click="GoSelectAdr(userAddress.value.userName,userAddress.value.phone)">
								{{ userAddress.value.address }}
							</view>
							<view class="nb2" @click="GoSelectAdr(userAddress.userName,userAddress.phone)">
								{{userAddress.value.detailadr}}
							</view>
							<view class="nb2" @click="GoSelectAdr(userAddress.userName,userAddress.phone)">{{ userAddress.value.userName }}
								{{ userAddress.value.phone }} 
							</view>	
						</view>
                    </u-col>
                    <u-col span="2" text-align="right">
                       <!-- <view class="nc" v-if="isByOrder===false">
                            <u-icon name="edit-pen" color="#ccc" size="28" v-if="userAddress!=null"
                                    @click="GoSelectAdr(userAddress.value.userName,userAddress.value.phone)"></u-icon>
                            <u-icon name="edit-pen" color="#ccc" size="28" v-else
                                    @click="GoUrl('../shop_selectedAddress_new/shop_selectedAddress_new',1)"></u-icon>
                        </view> -->
                    </u-col>
                </u-row>
            </view> <!-- name End -->
			
            <view class="adr">
                <u-row gutter="16">
                    <u-col span="6" text-align="left">
                        <view class="gray">配送方式</view>
                    </u-col>
                    <u-col span="6" text-align="right">
                        <view>快递 免运费</view>
                    </u-col>
                </u-row>
            </view> <!-- adr End -->
			
        </view> <!-- address End -->

        <!-- 间隔槽 -->
        <!-- <block v-if="isAuthCode===true">
            <u-gap height="15" bg-color="#F7F9FD" margin-top="20" margin-bottom="20"></u-gap>
            <view class="address">
                <view class="adr">
                    <u-row gutter="16">
                        <u-col span="6" text-align="left">
                            <view class="gray">授权码</view>
                        </u-col>
                        <u-col span="6" text-align="right">
                            <view @click="StartScan" v-if="isAuthCodeScan===false">
                                <image
                                    src="https://img-and-video.oss-cn-shenzhen.aliyuncs.com/images/static/My/ewm-gray.png"
                                    style="width:36rpx; height:36rpx;margin-right:10rpx; position:relative; top:10rpx;"></image>
                                <u-icon name="arrow-right" color="#999" size="22"></u-icon>
                            </view>
                            <view v-else>
                                <text style="color:#00a100;" @click="StartScan">已授权</text>
                            </view>
                        </u-col>
                    </u-row>
                </view>
            </view>
        </block> -->

        <!-- 间隔槽 -->
        <u-gap height="15" bg-color="#F7F9FD" margin-top="20" margin-bottom="20"></u-gap>

        <view class="orderInfo">
            <view class="HomeAd">
                <u-row gutter="0">
                    <u-col span="1.5" text-align="center">
                        <view>
                            <image :src="$globalConfig.shopLogo"></image>
                        </view>
                    </u-col>
                    <u-col span="7.5" text-align="left">
                        <view>{{$globalConfig.shopName}}</view>
                    </u-col>
                    <u-col span="3" text-align="right">
                        <!-- <view class="link">店铺首页</view> -->
                    </u-col>
                </u-row>
            </view> <!-- HomeAd End -->
            <view class="Photo">
				<view v-for="(item,index) in ProductList.data" :key="index" style="margin-bottom:20px;">
						<u-row gutter="0" v-if="ProductList.data[0] != undefined">
							<!-- /static/shop/sh1.png -->
							<u-col span="3" text-align="center">
								<view class="pimg">
									<view>
										<!-- 有封面图 -->
										<image class="photoimage" v-if="item.picUrl!=''" :src="item.picUrl" :class="item.isDelete>=1?'imgGray':''"
											   mode="aspectFill"></image>
										<!-- 无封面图 -->
										<image class="photoimage" v-else src="/static/none.png" :class="item.isDelete>=1?'imgGray':''"
											   mode="aspectFill"></image>
									</view>
									<view class="needDoctor" v-if="item.needDoctor>0">授</view>
								</view>
							</u-col>
							<u-col span="9" text-align="left">
								<view class="PdPara">
									<view class="black mid ptit" :class="item.isDelete>=1?'GrayThrough':''">
										{{ item.goodsName }}
									</view>
									<view class="kucun gray">{{ item.classifyName }}</view>
									<view class="price">
										<view class="pa" :class="item.isDelete>=1?'GrayThrough':''">
											<text :class="item.isDelete>=1?'GrayText':''">￥</text>
											{{ item.discountPrice }}
										</view>
										<view class="pb">
											<view v-if="orderbh===null">
												<!-- 这里不能给用户改数量了 -->
												<u-number-box :min="1" v-model="item.num"
															  @change="boxvalChange(index)"></u-number-box>
												<!-- <text v-if="item.isDelete>=1">商品库存不足或已下架</text> -->
											</view>
											<view v-else>x {{ item.num }}</view>
										</view>
									</view>
								</view>
							</u-col>
						</u-row>
				</view>
            </view> <!-- Photo End -->
        </view> <!-- orderInfo End -->

        <!-- 间隔槽 -->
        <u-gap height="20" bg-color="#F7F9FD" margin-top="0" margin-bottom="20"></u-gap>

        <view class="info">
			<view class="mp">
				<u-row gutter="16">
					<u-col span="6" text-align="left">
						<view class="gray">商品金额</view>
					</u-col>
					<u-col span="6" text-align="right">
						<view class="font">￥{{ price }}</view>
					</u-col>
				</u-row>
			</view>
			<view class="mp">
				<u-row gutter="16">
					<u-col span="6" text-align="left">
						<view class="gray">运费</view>
					</u-col>
					<u-col span="6" text-align="right">
						<view class="font">￥0</view>
					</u-col>
				</u-row>
			</view>
            <!-- <u-row gutter="16">
                <u-col span="6" text-align="left">
                    <view class="gray">优惠</view>
                </u-col>
                <u-col span="6" text-align="right">
                    <view class="font" style="color: #017BFF;">-￥0</view>
                </u-col>
            </u-row> -->
			<view class="mp">
				<u-row gutter="16">
					<u-col span="6" text-align="left">
						<view class="black">合计：</view>
					</u-col>
					<u-col span="6" text-align="right">
						<view class="font" style="color: #FF4152;">￥{{ total }}</view>
					</u-col>
				</u-row>
			</view>
        </view> <!-- info End -->

        <!-- 间隔槽 -->
        <u-gap height="20" bg-color="#F7F9FD" margin-top="20" margin-bottom="10"></u-gap>

        <view class="inputWord" style="padding-bottom:10rpx;">
            <u-row gutter="16">
                <u-col span="3" text-align="left">
                    <view class="gray">买家留言</view>
                </u-col>
                <u-col span="9" text-align="right">
                    <view class="font">
                        <u-input v-model="remark" :disabled="(orderbh!=null && orderbh!='')?true:false"
                                 @input="buyerMessage" input-align="left" type="text" :border="false"
                                 :placeholder="placeholder" maxlength="250"/>
                    </view>
                </u-col>
            </u-row>
        </view> <!-- inputWord End -->
		
		<!-- 间隔槽 -->
		<u-gap height="20" bg-color="#F7F9FD" margin-top="20" margin-bottom="10"></u-gap>


        <!-- 是否需要发票
        <block v-if="billchecked===false">
            <u-gap height="20" bg-color="#F7F9FD" margin-top="20" margin-bottom="20"></u-gap>
            <view class="inputWord">
                <u-row gutter="16">
                    <u-col span="3" text-align="left">
                        <view class="gray">发票</view>
                    </u-col>
                    <u-col span="9" text-align="right">
                        <view class="font">
                            <u-switch v-model="billchecked"></u-switch>
                        </view>
                    </u-col>
                </u-row>
            </view> 
            <u-gap height="20" bg-color="#F7F9FD" margin-top="20" margin-bottom="20"></u-gap>
        </block>
        <block v-else>
            <u-gap height="20" bg-color="#F7F9FD" margin-top="20" margin-bottom="20"></u-gap>
            <view class="inputWord">
                <u-row gutter="16">
                    <u-col span="2" text-align="left">
                        <view class="gray">发票</view>
                    </u-col>
                    <u-col span="10" text-align="right">
                        <view v-if="userBill===null || userBill===''" class="font" style="color:#ccc;"
                              @click="choiceBill">
                            <block v-if="isByOrder===false">
                                <text class="gray">请选择发票类型</text>
                                <u-icon name="arrow-right" color="#ccc" size="28"></u-icon>
                            </block>
                            <block v-else>
                                <text class="gray">无</text>
                            </block>
                        </view>
                        <view v-else class="font" style="color:#333;" @click="choiceBill">
                            <block v-if="userBill.billType!=null && userBill.billType!=''">
                                {{ userBill.billType | symbol(false) }}
                                {{ userBill.billHead | symbol(false) }}
                                {{ userBill.billName | symbol(true) }}
                                {{ userBill.billNumber | StrLen }}
                                <u-icon v-if="isByOrder===false" name="arrow-right" color="#ccc" size="28"></u-icon>
                            </block>
                            <block v-else>
                                <text class="gray">无</text>
                            </block>
                        </view>
                    </u-col>
                </u-row>
            </view> 
            <u-gap height="20" bg-color="#F7F9FD" margin-top="20" margin-bottom="20"></u-gap>
        </block>
		 -->


        <!-- 订单编号  -->
        <view class="orderbh" v-if="orderbh!=null && orderbh!=''">
            <u-row gutter="16">
                <u-col span="3" text-align="left">
                    <view class="gray">订单编号</view>
                </u-col>
                <u-col span="7" text-align="left">
                    <view class="font pos">{{ orderbh }}</view>
                </u-col>
                <u-col span="2" text-align="center">
                    <view class="font fuzhi" @click="fuzhi">复制</view>
                </u-col>
            </u-row>
            <u-row gutter="16">
                <u-col span="3" text-align="left">
                    <view class="gray">下单日期</view>
                </u-col>
                <u-col span="6" text-align="left">
                    <view class="font pos">{{ orderTime }}</view>
                </u-col>
                <u-col span="3" text-align="center">
                    <view class="font"></view>
                </u-col>
            </u-row>
        </view>

        <!-- 间隔槽
        <u-gap height="20" bg-color="#F7F9FD" margin-top="20" margin-bottom="20"></u-gap>-->


        <!--
        payStatus: 1: 未支付 2: 已支付  3: 已退款
        mailStatus: 1: 未发货 2: 已发货 3: 确认收货 4：退货中  5：已退货
        -->
        <view class="fixbuy">
            <block v-if="mailStatus!=2">
                <view class="fa">
                    <block v-if="payStatus===1">
                        实付:
                        <text style="font-size:22rpx !important;">￥</text>
                        <text class="big blod" style="color:#FF4152;">{{ total }}</text>
                    </block>
                </view>
                <view class="fb" v-if="payStatus===2 && orderBtn==='查物流'">确认收货</view>
                <view class="fb" v-if="payStatus===1" @click="GenerateOrder">支付购买</view>
            </block>
            <block v-else>
                <view class="pingjia" style="width:180rpx !important;" @click="GoPingjia('查看评价')">查看评价</view>
                <view class="shouhou" @click="GoPingjia('申请售后')">申请售后</view>
            </block>
        </view>     <!-- fixbuy End -->


    </view> <!-- Contain End -->
	
	
</template>

<script setup lang="ts">
import { ref,reactive } from 'vue'
import { GoUrl,Toast } from '@/utils/utils'
import {onShow,onLoad,onBackPress } from '@dcloudio/uni-app'
import {generateOrder,payOrder} from '@/utils/utils'
import hex_md5 from 'md5'



const orderPayData=()=>{
	
}

let isDirctBuyMode=ref(false); //是否直接购买模式
let ProductList=reactive<any>({data:[
					// {
					// 	"id":1,
					// 	"isOver":0,
					// 	"checked":false,
					// 	"discountPrice":120,
					// 	"picUrl":"https://aigxyy.oss-cn-shenzhen.aliyuncs.com/images/shopimg/sss2.png",
					// 	"needDoctor":1,
					// 	"goodsName":"四合一心脏复苏组件",
					// 	"classifyName":"保护您的健康",
					// 	"num":1,
					// },
					// {
					// 	"id":2,
					// 	"isOver":0,
					// 	"checked":false,
					// 	"discountPrice":80,
					// 	"picUrl":"https://aigxyy.oss-cn-shenzhen.aliyuncs.com/images/shopimg/sss1.png",
					// 	"needDoctor":0,
					// 	"goodsName":"三合一心脏复苏组件",
					// 	"classifyName":"保护您的健康",
					// 	"num":2,
					// }
]});
let orderbh=ref("")
let orderState=ref(1)  //订单状态status:0-全部，1-未支付，2-待发货，3-待收货
let payStatus=ref(1)  //payStatus: 1: 未支付 2: 已支付  3: 已退款
let mailStatus=ref(1) //mailStatus: 1: 未发货 2: 已发货 3: 确认收货 4：退货中  5：已退货
let expressName=ref("") //物流公司名称
let expressNo=ref("") //物流单号
let placeholder=ref("给商家留言(250字以内)")
let orderStateIamge=ref("/static/shop/daifu.png")
let orderText=ref("待付款")
let orderDesc=ref("1笔待支付") //00:59:00后订单将关闭
let orderBtn=ref("支付")  //按钮
let isInputAddress=ref(false) //是否输入了地址
let orderTime=ref("")
let Address=ref("") //广东省湛江市赤坎区湛江大道北73丽华花园73号皇后大道东3号
let user=ref("") //马冬梅
let phone=ref("") //15812345678
let boxvalue=ref(1)
let price=ref(0)
let totalBuy=ref(0)
let total=ref(0)
let userAddress=reactive<any>({}) //读取缓存用
let addressId=ref("") //订单所需参数
let listForDetail=reactive<any>([])   //拼接订单          
let cartIds=ref("")
let classifyId=ref("")
let goodsId=ref("")
let goodsNum=ref(0)
let orderFrom=ref(0)
let remark=ref("")
//发票
let billchecked=ref(true)
let userBill=ref("")  //用户发票类型
let isByOrder=ref(false); //是否根据订单号去查询
let orderInfo=ref("")
//授权码
let isAuthCodeScan=ref(false) //是否扫描了授权码
let isAuthCode=ref(false) //本单是否需要授权码(购物车中，任一商品需要授权码，该订单都需要授权码)
let AuthCodeStr=ref("") //授权码



let realPayMoney=ref(0);
let merchant=reactive<any>({
	buyerUserId:'', //购买者id
	name:'商城', //分类统一用商城
	tel:'',
	adr:'',
	class:'饮用水',
	desc:'饮用水购买',
	photo:'',
	month:'1',
	price:0, //测试金额 0.01 127100
	lat:0.0,
	lng:0.0,
})

onLoad((opts:any)=>{
	if (opts.orderNo != null) {
		uni.setStorageSync("OrderNo", opts.orderNo);
		orderbh.value = opts.orderNo;
		console.log("当前订单中心过来的订单号:", orderbh.value);
	}	
})
onShow(()=>{
	
		if(uni.getStorageSync("shopuserinfo")!=null && uni.getStorageSync("shopuserinfo")!=''){
			merchant.buyerUserId=uni.getStorageSync("shopuserinfo").id;
			console.log("当前用户id",merchant.buyerUserId);
		}
	
		if((uni.getStorageSync("cartProductList")!=undefined || uni.getStorageSync("cartProductList")!=null) && uni.getStorageSync("cartProductList")!=''){
			ProductList.data=uni.getStorageSync("cartProductList")?uni.getStorageSync("cartProductList"):null;
		}
		
		//计算价格
		CountPrice();
		
		userAddress.value = uni.getStorageSync("userAddress") ? uni.getStorageSync("userAddress") : null;
		console.log("当前用户缓存地址:", userAddress.value)
		if (userAddress.value != null && userAddress.value != "") {
		    addressId.value = userAddress.value.id;
		    console.log("送货地址:", userAddress.value,userAddress.value.userName);
		    isInputAddress.value = true;
		} else {
		    isInputAddress.value = false;
		}
		 console.log("是否显示地址111:",isInputAddress.value);	
})

const symbol=(val:string,last:boolean)=>{
	if (val != null && val != '') {
		if (last === false) {
			return val + "/";
		} else {
			return val;
		}
	}
	return val;
}


const clearStr=(val:string)=>{
	//return val.replace(/\s*/img,"");
	return val;
}

const StrLen=(val:string)=>{
	if (val.length > 3) return val.substring(0, 3) + "..";
	return val;
}


 //调用摄像头扫描二维码
const StartScan=()=>{
	/* PB.scanCode((res) => {
		// console.log('条码类型：' + res.scanType);
		console.log('条码内容：' + res.result);
		if (res.result.indexOf("授权码") != -1) {
			if (res.result != null && res.result != '' && res.result.indexOf("_") != -1) {
				isAuthCodeScan = true;
				AuthCodeStr = res.result.split('_')[0];
				console.log("授权码串串:", AuthCodeStr);
				uni.setStorageSync("AuthCodeStr", AuthCodeStr)
			}
		} else {
			$tools.$alert("扫码失败！此码非授权码");
		}
	}) */
}
const GoSelectAdr=(userName:string, phone:string)=>{
	if (isByOrder.value === true) return; //生成订单后不能再跳转
	GoUrl('../shop_selectedAddress_new/shop_selectedAddress_new?name=' + userName + '&phone=' + phone);
}

 //根据规格返回对应图片
const GetCoverImageFromSpecification=(obj:any, originUrl:string, SpecificationName:string)=>{
	let index = obj.listForGoodsClassify.findIndex((o) => o.name === SpecificationName);
	if (index != -1) return obj.listForGoodsClassify[index].picUrl;
	return originUrl;
}

const fuzhiExpress=()=>{
	uni.setClipboardData({
		data: expressNo,
		success: () => {
			console.log('success');
			Toast(expressNo + " 已复制");
		}
	});
}


const choiceBill=()=>{
	//订单生成后，不能再选择发票
	if (orderbh.value != null && orderbh.value != '') return;
	GoUrl('../shop_bill/shop_bill');
}


const buyerMessage=(e:any)=>{
	remark.value = e;
}


 //去支付
const GoPay=()=>{
    Toast("发起支付ok");
}


//订单中心传递过来查看 -- 根据订单号查询当前订单信息
const GetOrderBybh=(OrderBh:string)=>{
	let oPara = {
		orderNo: OrderBh
	}
}

 //获取购物车列表
const GetShopCartList=()=>{
	
}

const GoPage=()=>{
	if (orderBtn.value === '查物流') {
		GoUrl("../shop_wuliu/shop_wuliu");
	}
}


const fuzhi=()=>{
	uni.setClipboardData({
		data: orderbh,
		success: () => {
			console.log('success');
			GoUrl("订单号已复制ok");
		}
	});
}


 //计算价格
const CountPrice=()=>{
	console.log("计算价格...");
	// total.value = 0;
	// totalBuy.value=0;
	// ProductList.data.forEach((item:any) => {
	// 	total.value += item.discountPrice * item.num;
	// 	totalBuy.value+=item.num;
	// });			
	// //total.value =  total.value.toFixed(2);
	// price.value = total.value; //商品金额
	// console.log("总价格:", total.value);
	if(uni.getStorageSync("cartProductList")!=null && uni.getStorageSync("cartProductList")!=''){
		total.value=0;
		let cartData=uni.getStorageSync("cartProductList");
		cartData.forEach((item:any) => {
			total.value += item.discountPrice * item.num;
			totalBuy.value+=item.num;
		});		
		merchant.price=total.value;
		realPayMoney.value=total.value;
		console.log(merchant.price,"实际支付价格",realPayMoney.value);
	}
}


//数量增加
const boxvalChange=(index:number)=>{
	CountPrice();
}



//取出购物车id，并转换成数据
const getProductids=()=>{
	let productids=reactive<any>([]);
	if(ProductList.data.length>0){
		ProductList.data.forEach(item=>{
			productids.push(item.id);
		})
	}
	return productids;
}


//生成订单
const GenerateOrder=async ()=>{
	
	if(merchant.buyerUserId===null || merchant.buyerUserId===''){
		uni.$tools.Toast("当前购买者id已失效")
		setTimeout(()=>{
			uni.$tools.GoUrl("/pages/login/login",0); //跳转到登录
		},1000);
		return;
	}
	
	if (addressId.value === null || addressId.value === '') {
		Toast("请填写收货地址");
		return;
	}
	
	uni.showLoading({
		title:"正在支付"
	})
	setTimeout(()=>{
		uni.hideLoading();
	},8000);
	/*生成订单*/
	let paraData={
		userid:merchant.buyerUserId,
		ordername:merchant.name,
		adrphone:merchant.tel,
		adradress:merchant.adr,
		productname:merchant.class, //productname 购买套餐分类
		adrdetail:merchant.desc, //商家简介
		totalpay:merchant.price, //实际支付金额
		productimg:merchant.photo, //商家图片
		buynumber:merchant.month.replace("个月",""), //入驻时长
		//beizhu:merchant.lat+","+merchant.lng, //经纬度 lat,lng 逗号分隔 (20.12345,110.666588)，后台分解
		beizhu:'',
		orderprice:merchant.price //支付金额
	}
	console.log("下单参数:",paraData);
	generateOrder("/api/generateOrder",paraData).then(res=>{
		console.log("服务器返回",res);
		if(res.data.code===200){
			let orderNo=res.data.orderInfo.orderno;
			let payMoney=merchant.price;
			let productName=merchant.class;
			//生成订单后，上传商家订单号+图片店招 更新
			//uploadMerchantImage(orderNo);
			//调用支付订单
			//realPayMoney.value=1;//测试金额
			payOrder("/api/orderPay",orderNo,productName,realPayMoney.value*100);
		}		
	});
}
</script>
<style>
page {
    background: #F7F9FD;
}
</style>
<style scoped lang="scss">
@import "shop_order.scss";
</style>